package com.jf.cloud.service.sysmanager.remote;

import javax.servlet.http.HttpServletRequest;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 首页跳转
 * 
 * @author 卫江波
 * @2017年6月27日下午3:44:52
 */
@Controller
@RequestMapping("/index")
public class IndexController {


	/**
	 * 日志 使用 slf4j  统一处理，兼容个日志框架
	 */
	static Logger log = LoggerFactory.getLogger(IndexController.class);
 
	@RequestMapping("/")
	public String index_(HttpServletRequest request) {
		request.getSession().setAttribute("user",null);
		return "welcome";
	}
	
	@RequestMapping("system/{page}")
	public String set(@PathVariable String page) {
		return "jsp/system/"+page;
	}
	
}
